<html>

<body>
<div>
<table>
	<tr>
		<th>Ingreso</th>
		<th>Cantidad</th>
	</tr>
<?php 
	foreach ($ingreso as $row) {
?>
<tr>
	<td><?php echo $row->date_part ?></td>
	<td><?php echo $row->count ?></td>
</tr>
<?php } ?>
</table>

<table>
	<tr>
		<th>Egreso</th>
		<th>Cantidad</th>
	</tr>
<?php 
	foreach ($egreso as $row) {
?>
<tr>
	<td><?php echo $row->date_part ?></td>
	<td><?php echo $row->count ?></td>
</tr>
<?php } ?>
</table>
</div>
</body>
</html>